package com.es.spring.aop.interceptor;

/**
 * @author 二十
 * @since 2021/11/9 10:11 下午
 */
public interface MyInterceptor {

    Object invoke(MyInvocation myInvocation);
}
class One implements MyInterceptor{

    @Override
    public Object invoke(MyInvocation myInvocation) {
        Object result = null;
        System.out.println("1");
        result=myInvocation.proceed();
        System.out.println("4");
        return result;
    }
}
class Two implements MyInterceptor{

    @Override
    public Object invoke(MyInvocation myInvocation) {
        Object result = null;
        System.out.println("2");
        result=myInvocation.proceed();
        System.out.println("3");
        return result;
    }
}